#pragma once
#include <vector>

using namespace std;

class CCurveCtrl
{
public:
	CCurveCtrl(void);
	~CCurveCtrl(void);
	void ClearBuffer() { m_vecPoint.clear(); };
	void AddPoint( int nPosY )	{ m_vecPoint.push_back( nPosY ); };
	void DoDrawing(CDC *pDC, COLORREF lColor, int nPenWidth);
	void SetRange( CRect _lRectRange )	{ m_RectRange = _lRectRange; }
	int SetPosData(void);

private:
	int AtBeginClass(void);
	int AtEndClass(void);

public:
	vector<int > m_vecPoint;
	vector<POINT > m_vecPointPos;
	CRect m_RectRange;
	static int m_nDisRange;
};

